<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="RangosEditDlg" widgetVar="RangosEditDialog" modal="true" resizable="false" appendToBody="true" header="#{rentaBundle.EditRangosTitle}">

            <h:form id="RangosEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{rangosController.selected != null}">

                        <h:outputLabel value="#{rentaBundle.EditRangosLabel_idrango}" for="idrango" />
                        <h:outputText id="idrango" value="#{rangosController.selected.idrango}" />

                        <p:outputLabel value="#{rentaBundle.EditRangosLabel_montominimo}" for="montominimo" />
                        <p:inputText id="montominimo" value="#{rangosController.selected.montominimo}" title="#{rentaBundle.EditRangosTitle_montominimo}" />

                        <p:outputLabel value="#{rentaBundle.EditRangosLabel_pagobase}" for="pagobase" />
                        <p:inputText id="pagobase" value="#{rangosController.selected.pagobase}" title="#{rentaBundle.EditRangosTitle_pagobase}" />

                        <p:outputLabel value="#{rentaBundle.EditRangosLabel_porcentajepago}" for="porcentajepago" />
                        <p:inputText id="porcentajepago" value="#{rangosController.selected.porcentajepago}" title="#{rentaBundle.EditRangosTitle_porcentajepago}" />
                    </p:panelGrid>
                    <p:commandButton actionListener="#{rangosController.save}" value="#{rentaBundle.Save}" update="display,:RangosListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,RangosEditDialog);"/>
                    <p:commandButton value="#{rentaBundle.Cancel}" onclick="RangosEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
